﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="查看.aspx.cs" Inherits="管理员_操作_查看" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
            height: 111px;
            background-image: url('../../photo/8.jpg');
        }
        .auto-style2 {
            width: 50%;
            height: 287px;
            background-color: #00FF00;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table class="auto-style1">
            <tr>
                <td>&nbsp;</td>
            </tr>
        </table>
    
    </div>
        <table align="center" class="auto-style2">
            <tr>
                <td>
                    <br />
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                        <asp:ListItem Value="1">消费者</asp:ListItem>
                        <asp:ListItem Value="0">车主</asp:ListItem>
                    </asp:DropDownList>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="CAR_ID" DataSourceID="SqlDataSource2" Visible="False">
                        <Columns>
                            <asp:BoundField DataField="CAR_NUMBER" HeaderText="CAR_NUMBER" SortExpression="CAR_NUMBER" />
                            <asp:BoundField DataField="CAR_NAME" HeaderText="CAR_NAME" SortExpression="CAR_NAME" />
                            <asp:BoundField DataField="CAR_ID" HeaderText="CAR_ID" ReadOnly="True" SortExpression="CAR_ID" />
                            <asp:BoundField DataField="CAR_PRICE" HeaderText="CAR_PRICE" SortExpression="CAR_PRICE" />
                            <asp:BoundField DataField="CAR_OID" HeaderText="CAR_OID" SortExpression="CAR_OID" />
                            <asp:BoundField DataField="CAR_PASSWORD" HeaderText="CAR_PASSWORD" SortExpression="CAR_PASSWORD" />
                            <asp:BoundField DataField="CAR_STATE" HeaderText="CAR_STATE" SortExpression="CAR_STATE" />
                        </Columns>
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:testDBConnectionString %>" SelectCommand="SELECT * FROM [Car_users]"></asp:SqlDataSource>
                    <br />
                    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="Tourist_Name" DataSourceID="SqlDataSource1">
                        <Columns>
                            <asp:BoundField DataField="Tourist_Name" HeaderText="Tourist_Name" ReadOnly="True" SortExpression="Tourist_Name" />
                            <asp:BoundField DataField="Tourist_Password" HeaderText="Tourist_Password" SortExpression="Tourist_Password" />
                            <asp:BoundField DataField="Tourist_Destination" HeaderText="Tourist_Destination" SortExpression="Tourist_Destination" />
                            <asp:BoundField DataField="Toueist_ID" HeaderText="Toueist_ID" SortExpression="Toueist_ID" />
                        </Columns>
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:testDBConnectionString %>" SelectCommand="SELECT * FROM [Tourist_users]"></asp:SqlDataSource>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/主页面.aspx">退出</asp:HyperLink>
                    <br />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
